package com.yougou.data.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class Goods implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @SerializedName("goods_id")
    private int goodsId;
    
    @SerializedName("cat_id")
    private int catId;
    
    @SerializedName("goods_name")
    private String goodsName;
    
    @SerializedName("goods_price")
    private double goodsPrice;
    
    @SerializedName("goods_number")
    private int goodsNumber;
    
    @SerializedName("goods_weight")
    private int goodsWeight;
    
    @SerializedName("goods_big_logo")
    private String goodsBigLogo;
    
    @SerializedName("goods_small_logo")
    private String goodsSmallLogo;
    
    private String goodsPic;
    
    @SerializedName("add_time")
    private long addTime;
    
    @SerializedName("upd_time")
    private long updTime;
    
    @SerializedName("hot_mumber")
    private int hotNumber;
    
    @SerializedName("is_promote")
    private boolean isPromote;
    
    @SerializedName("cat_one_id")
    private int catOneId;
    
    @SerializedName("cat_two_id")
    private int catTwoId;
    
    @SerializedName("cat_three_id")
    private int catThreeId;
    
    
    public int getGoodsId() {
        return goodsId;
    }
    
    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }
    
    public int getCatId() {
        return catId;
    }
    
    public void setCatId(int catId) {
        this.catId = catId;
    }
    
    public String getGoodsName() {
        return goodsName;
    }
    
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }
    
    public double getGoodsPrice() {
        return goodsPrice;
    }
    
    public void setGoodsPrice(double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }
    
    public int getGoodsNumber() {
        return goodsNumber;
    }
    
    public void setGoodsNumber(int goodsNumber) {
        this.goodsNumber = goodsNumber;
    }
    
    public int getGoodsWeight() {
        return goodsWeight;
    }
    
    public void setGoodsWeight(int goodsWeight) {
        this.goodsWeight = goodsWeight;
    }
    
    public String getGoodsBigLogo() {
        return goodsBigLogo;
    }
    
    public void setGoodsBigLogo(String goodsBigLogo) {
        this.goodsBigLogo = goodsBigLogo;
    }
    
    public String getGoodsSmallLogo() {
        return goodsSmallLogo;
    }
    
    public void setGoodsSmallLogo(String goodsSmallLogo) {
        this.goodsSmallLogo = goodsSmallLogo;
    }
    
    public String getGoodsPic() {
        // 如果goodsPic为空，使用goodsSmallLogo
        return goodsPic != null ? goodsPic : goodsSmallLogo;
    }
    
    public void setGoodsPic(String goodsPic) {
        this.goodsPic = goodsPic;
    }
    
    public long getAddTime() {
        return addTime;
    }
    
    public void setAddTime(long addTime) {
        this.addTime = addTime;
    }
    
    public long getUpdTime() {
        return updTime;
    }
    
    public void setUpdTime(long updTime) {
        this.updTime = updTime;
    }
    
    public int getHotNumber() {
        return hotNumber;
    }
    
    public void setHotNumber(int hotNumber) {
        this.hotNumber = hotNumber;
    }
    
    public boolean isPromote() {
        return isPromote;
    }
    
    public void setPromote(boolean promote) {
        isPromote = promote;
    }
    
    public int getCatOneId() {
        return catOneId;
    }
    
    public void setCatOneId(int catOneId) {
        this.catOneId = catOneId;
    }
    
    public int getCatTwoId() {
        return catTwoId;
    }
    
    public void setCatTwoId(int catTwoId) {
        this.catTwoId = catTwoId;
    }
    
    public int getCatThreeId() {
        return catThreeId;
    }
    
    public void setCatThreeId(int catThreeId) {
        this.catThreeId = catThreeId;
    }
}

